<?php

App::uses('AppHelper', 'Helper');

class MyFormHelper extends AppHelper {
    
    public $helpers = array('Form', 'Html');
    
    public function text($name, $options=array()) {
        $options['required'] = false;
        
        return $this->Form->text($name, $options);
    }
    
    public function error($name, $text=null, $options=null) {
        $options['wrap'] = 'span';
        return '<span class="error-container">'.$this->Form->error($name, $text, $options).'</span>';
    }
}